package com.cade.agriculturemall.view.classify.goodsdetail;

;import android.content.Context;

import com.avos.avoscloud.AVObject;
import com.cade.agriculturemall.base.IBasePresenter;
import com.cade.agriculturemall.base.IBaseView;
import com.cade.agriculturemall.model.GoodsDetailEntity;

/**
 * Created by Lobby on 2017/11/22.
 */

public interface GoodsDetailContract {
    interface IView extends IBaseView {
        void setEntity(GoodsDetailEntity list);
    }

    interface IPresenter extends IBasePresenter {
        void getGoodsDetail(String objectId);
        void addFavourite();
        void deleteFavourite();
        void isLike(GoodsDetailEntity goodsDetailEntity, ProductLikeListener listener); //判断likebtn的状态
        void isInShoppingCars(GoodsDetailEntity goodsDetailEntity, ProductLikeListener listener); //判断likebtn的状态
        void addCars();
        void deleteShoppingCars();
        void affixionPersonalHistory(AVObject aVObject,String proObject);
        void isinHistory(Context context,String targrtid);
    }

    interface ProductLikeListener{
        void isProductLike(Boolean isLike);
    }
}
